using EventApp.Lib.Domain;

namespace EventApp.Lib.Repository
{
    public class EventRepository
    {
        private IDataRepository<Event> _dataRepository;

        public EventRepository(IDataRepository<Event> dataRepository)
        {
            this._dataRepository = dataRepository;
        }

        public void Save(Event evt)
        {
            this._dataRepository.Add(evt);
        }

        public void Delete(Event evt)
        {
            this._dataRepository.Delete(evt);
        }
    }
}